From: Marina Zhurakhinskaya Date: Mon, 29 Aug 2011 19:18:52 +0000 (-0400) Subject: Add 'multi-line-notification' class name if the notification image is set X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7860 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2054f77e2b826b2169c4deb4f40e74fb65f27097;p=gnome-shell.git Add 'multi-line-notification' class name if the notification image is set Notifications with images are multi line notification. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 89d3aca4f..79f91ade1 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -677,6 +677,7 @@ Notification.prototype = { this._imageBin = new St.Bin(); this._imageBin.child = image; this._imageBin.opacity = 230; + this._table.add_style_class_name('multi-line-notification'); this._table.add_style_class_name('notification-with-image'); this._updateLastColumnSettings(); this._table.add(this._imageBin, { row: 1, @@ -694,6 +695,8 @@ Notification.prototype = { this._table.remove_actor(this._imageBin); this._imageBin = null; this._updateLastColumnSettings(); + if (!this._scrollArea && !this._actionArea) + this._table.remove_style_class_name('multi-line-notification'); } },